package com.yckj.lawyermanager.dongao.service;

import com.yckj.lawyermanager.dongao.entity.Lawyer;

import java.util.List;

/**
 * 律师档案业务接口
 * @author Jing yaxian
 * @create 2023-01-02 17:16
 */
public interface LawyerService {
    /**
     * 修改律师信息
     * @param lawyer 律师对象
     * @return 成功返回1，否则返回0
     */
    public int modifyLawyer(Lawyer lawyer);
    /**
     * 按照律师编号查询
     * @param lawyerid 律师编号
     * @return 查询得到的律师对象
     */
    public Lawyer findLawyerById(int lawyerid);
    /**
     * 按照编号删除
     * @param lawyerid 律师编号
     * @return 删除的编号
     */
    public int removeLawyer(int lawyerid);
    /**
     * 查询所有律师
     * @return 律师合集
     */
    public List<Lawyer> findLawyer();
    /**
     * 添加律师
     * @param lawyer 律师对象
     * @return 添加成功返回
     */
    public int addLawyer(Lawyer lawyer);
}
